#ifndef LIFECHECKER_H
#define LIFECHECKER_H
#include "LifeBoard.h"


class LifeChecker
{
    public:
        LifeChecker(int, int);
        ~LifeChecker();
        LifeBoard nextGeneration(LifeBoard*);
        bool isAlive();
        int getCurX();
        int getCurY();
    protected:
    private:
        bool alive;
        int curX;
        int curY;
        LifeBoard * gameBoard;
        bool lifeUpChecker();
        bool lifeDownChecker();
        bool lifeRightChecker();
        bool lifeLeftChecker();
        bool lifeUpRightChecker();
        bool lifeUpLeftChecker();
        bool lifeDownRightChecker();
        bool lifeDownLeftChecker();
        void setCurX(int);
        void setCurY(int);
};

#endif
